package com.example.campuslink.commen.enums

enum class SecondHandEnum(val label: String) {
    RECOMMENDED("推荐"),
    USED_CLOTHES("二手服饰"),
    SPORTS_EQUIPMENT("运动器材"),
    BEAUTY_PRODUCTS("美妆护肤"),
    HANDICRAFT("手工艺术"),
    READY_TO_EAT("速食食品"),
    CONCERT_TICKETS("演唱会门票"),
    OTHER("其他");

    companion object {
        fun fromLabel(label: String): SecondHandEnum? =
            values().find { it.label == label }

        fun getAllLabels(): List<String> = values().map { it.label }
    }
}